package com.aktiehuis.bean;

import java.util.ArrayList;
import java.util.List;

import javax.ejb.Stateful;

import com.aktiehuis.main.Product;
import com.aktiehuis.main.Winkelmand;

@Stateful(mappedName="Winkelmand")
public class WinkelmandBean implements Winkelmand {
	public List<Product> producten = null;
	
	public WinkelmandBean() {
		producten = new ArrayList<Product>();
	}
	
	public List<Product> getProducten() {
		return producten;
	}
	
	public void voegToe( Product product ) {
		producten.add( product );
	}
	
	public void verwijder( Product product ) {
		producten.remove( product );
	}
}
